﻿using ETA.Entity;
using FluentNHibernate.Mapping;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ETA.EntityMappings
{
    public class DocumentMap : ClassMap<Document>
    {
        public DocumentMap()
        {
            Id(x => x.DocumentId);
            Map(x=>x.Title);
            Map(x => x.DocNo);
            Map(x => x.Target);
            Map(x => x.ContentRefrence);
            Map(x => x.Version);
            Map(x => x.ModifyDate);
            Map(x => x.CreateDate);
            References(x => x.UploadFile).Column("UploadFileId");
        }
    }
}
